<?php

function get_months($pclass)
{
switch($pclass)
{
case 390:
return 24;
break;
case 362:
return 24;
break;
case 122:
return 12;
break;
case 381:
return 24;
break;
case 343:
return 24;
break;
case 334:
return 12;
break;
case 397:
return 24;
break;
case 149:
return 6;
break;
}
}

function get_month_fee($pclass)
{
switch($pclass)
{
case 390:
return 2900;
break;
case 362:
return 2900;
break;
case 122:
return 2900;
break;
case 381:
return 395;
break;
case 343:
return 395;
break;
case 334:
return 395;
break;
case 397:
return 3900;
break;
case 149:
return 3900;
break;
}
}

function correct_currency($pclass, $curr)
{
switch($pclass)
{
case 390:
return (0 == $curr);
break;
case 362:
return (0 == $curr);
break;
case 122:
return (0 == $curr);
break;
case 381:
return (1 == $curr);
break;
case 343:
return (1 == $curr);
break;
case 334:
return (1 == $curr);
break;
case 397:
return (2 == $curr);
break;
case 149:
return (3 == $curr);
break;
}
}

function get_start_fee($pclass)
{
switch($pclass)
{
case 390:
return 0;
break;
case 362:
return 29500;
break;
case 122:
return 29500;
break;
case 381:
return 0;
break;
case 343:
return 2995;
break;
case 334:
return 2950;
break;
case 397:
return 30000;
break;
case 149:
return 39500;
break;
}
}

function get_type($pclass)
{
switch($pclass)
{
case 390:
return 1;
break;
case 362:
return 0;
break;
case 122:
return 0;
break;
case 381:
return 1;
break;
case 343:
return 0;
break;
case 334:
return 0;
break;
case 397:
return 0;
break;
case 149:
return 0;
break;
}
}

function get_min_sum($pclass)
{
switch($pclass)
{
case 390:
return 100;
break;
case 362:
return 100000;
break;
case 122:
return 100000;
break;
case 381:
return 100;
break;
case 343:
return 10000;
break;
case 334:
return 10000;
break;
case 397:
return 1;
break;
case 149:
return 100000;
break;
}
}

function get_pclass_ids()
{
return array(390,362,122,381,343,334,397,149);
}

function get_rate($pclass)
{
switch($pclass)
{
case 390:
return 1950;
break;
case 362:
return 995;
break;
case 122:
return 0;
break;
case 381:
return 2200;
break;
case 343:
return 995;
break;
case 334:
return 0;
break;
case 397:
return 995;
break;
case 149:
return 0;
break;
}
}
?>